$notice-prefix-cls: "#{$css-prefix}notice";
$icon-prefix-cls: "#{$css-prefix}icon";

.#{$notice-prefix-cls} {
  width: $notice-width;
  margin-right:$notice-margin-right;
  position: fixed;
  z-index: $zindex-notification;

  &-notice {
    margin-bottom: $notice-margin-bottom;
    // padding: $notice-padding;
    padding: $notice-notice-padding;
    //border: 1px solid $border-color-split;
    border-radius: $border-radius-small;
    box-shadow: $shadow-base;
    background: $notice-notice-background;
    line-height: 1;
    position: relative;
    overflow: hidden;

    &-close {
      position: absolute;
      right: $notice-notice-close-right;
      top: $notice-notice-close-top;
      color:$notice-notice-close-color;
      outline: none;

      i{
        @include close-base(1px,14px);
      }
    }

    &-with-desc{
      .#{$notice-prefix-cls}-notice-close{
          top: 11px;
      }
    }
  }

  &-title {
    font-size: $font-size-base;
    font-weight: $notice-title-font-weight;
    color: $text-color;
    padding-right: $notice-title-padding-right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  &-with-desc &-title{
    margin-bottom: $notice-with-desc-margin-bottom;
  }

  &-desc {
      font-size: $notice-desc-font-size;
      color: $notice-desc-color;
      text-align: justify;
      line-height: 1.5;
  }
  &-with-icon &-title{
    margin-left: $notice-with-icon-margin-left;
  }
  &-with-desc &-title{
    margin-left: $notice-with-desc-margin-left;
  }
  &-with-desc &-desc{
    margin-left:$notice-with-desc-desc-margin-left;
  }
  &-icon {
    // position: absolute;
    position: relative;
    left: 0px;
    margin-top: -1px;
    font-size: $notice-icon-font-size;
    display: inline-block;

    &-success {
      color: $success-color;
    }
    &-info {
      color: $primary-color;
    }
    &-warning {
      color: $warning-color;
    }
    &-error {
      color: $error-color;
    }
  }
  &-with-desc &-icon{
    & i.iconfont {
      font-size: $notice-with-desc-iconfont-font-size;
    }
  } 

  &-custom-content{
    &:after{
      content: "";
      display: block;
      width: 4px;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
    }
  }
  &-with-normal{
    &:after{
      background:$notice-with-normal-color;
    }
    .#{$notice-prefix-cls}-title,.#{$notice-prefix-cls}-desc{
      margin-left: 0;
    }
  }
  &-with-info{
    &:after{
      background: $notice-with-info-color;
    }
  }
  &-with-success{
    &:after{
      background: $notice-with-success-color;
    }
  }
  &-with-warning{
    &:after{
      background: $notice-with-warning-color;
    }
  }
  &-with-error{
    &:after{
      background: $notice-with-error-color;
    }
  }
}